package com.cn.service.impl;

import com.cn.cloud.entities.People;
import com.cn.dao.PeopleDao;
import org.springframework.beans.factory.annotation.Autowired;
import com.cn.service.PeopleService;
import org.springframework.stereotype.Service;

@Service
public class PeopleServiceImpl implements PeopleService {

    @Autowired
    private PeopleDao peopleDao;

    @Override
    public int create(People people) {
        return peopleDao.create(people);
    }

    @Override
    public People getPeopleById(Long id) {
        return peopleDao.getPeopleById(id);
    }
}
